package com.intramirror.wd.api.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.intramirror.wd.common.bean.R;
import com.intramirror.wd.model.test.Person;
import com.intramirror.wd.model.test.TestBean;
import com.intramirror.wd.spi.TestInterface;
import com.intramirror.wd.spi.constant.ApiProviderPathConstant;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/${wd.serviceVersion}/${wd.serviceName}")
@RestController
public class TestAPIController {

    @Autowired
    private TestInterface service;

    @ApiOperation(value = "test", httpMethod = "POST")
    @RequestMapping(
            value = ApiProviderPathConstant.SERVICE_TEST_NAME+"/"+ApiProviderPathConstant.SERVICE_TEST_METHOD_HELLO,
            method = RequestMethod.POST)
    public R helloWorld(@RequestBody TestBean testBean) {


        return service.helloWorld(testBean);
    }

}
